-- GENERATED SPELL FOR [Reaver Guard] --


function spell0_17623(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17623', 576, 1)
end

function spell1_17623(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(30485,pUnit)
pUnit:RegisterEvent('Sorts_17623', 572, 1)
end

function spell2_17623(pUnit, Event) --@Uppercut,n/a--
pUnit:FullCastSpellOnTarget(30471,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17623', 551, 1)
end

function Sorts_17623(pUnit, Event)
local choix_sorts_17623 = math.random(0, 2)
if choix_sorts_17623 == 0 then
pUnit:RegisterEvent('spell0_17623', 1, 1)
end
if choix_sorts_17623 == 1 then
pUnit:RegisterEvent('spell1_17623', 1, 1)
end
if choix_sorts_17623 == 2 then
pUnit:RegisterEvent('spell2_17623', 1, 1)
end
end

function mob17623_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17623', math.random(1500, 3000), 1)
end

function mob17623_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17623_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17623_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17623, 1, 'mob17623_Action')
RegisterUnitEvent(17623, 2, 'mob17623_Leave')
RegisterUnitEvent(17623, 3, 'mob17623_Kill')
RegisterUnitEvent(17623, 4, 'mob17623_Die')
